#include <windows.h>
#include "CGame.h"
#include "Global.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	CGame *GameCenter=CGame::GetInstance();
	
	if(!GameCenter->Init(hInstance))
	{
		GameCenter->Release();
		return 0;
	}
	//Set dieu kien bao loi

	GameCenter->Run();
	//marioManager->Release();

	GameCenter->Release();

	return 1;
}
